import js from '@eslint/js';
import pluginVue from 'eslint-plugin-vue';

export default [
  {
    name: 'app/files-to-lint',
    files: ['**/*.{js,mjs,jsx,vue}'],
  },
  {
    name: 'app/files-to-ignore',
    ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
  },
  {
    rules: {
      'vue/multi-word-component-names': 'off', // 禁用多单词组件名称规则
    },
  },
  js.configs.recommended,
  ...pluginVue.configs['flat/essential'],
];